//
// Last.Backend LLC CONFIDENTIAL
// __________________
//
// [2014] - [2019] Last.Backend LLC
// All Rights Reserved.
//
// NOTICE:  All information contained herein is, and remains
// the property of Last.Backend LLC and its suppliers,
// if any.  The intellectual and technical concepts contained
// herein are proprietary to Last.Backend LLC
// and its suppliers and may be covered by Russian Federation and Foreign Patents,
// patents in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this material
// is strictly forbidden unless prior written permission is obtained
// from Last.Backend LLC.
//

package errors

import "errors"

const (
	ErrPortAllocated     = "port allocated"
	ErrEndpointAllocated = "endpoint allocated"
)

type route struct{}

func (route) NewErrPortAllocated() error {
	return errors.New(ErrPortAllocated)
}

func (route) NewErrEndpointAllocated() error {
	return errors.New(ErrEndpointAllocated)
}

func Route() route {
	return route{}
}
